//
//  ZJCommon.h
//  SmartWatch
//
//  Created by zwj on 2022/11/30.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface ZJCommon : NSObject
#pragma 是否是纯数字
+ (BOOL)isNumText:(NSString *)str;
#pragma 正则匹配手机号
+ (BOOL)checkTelNumber:(NSString *) telNumber;
#pragma 正则匹配用户密码6-18位数字和字母组合
+ (BOOL)checkPassword:(NSString *) password;
#pragma 正则匹配用户姓名,20位的中文或英文
+ (BOOL)checkUserName : (NSString *) userName;
#pragma 正则匹配用户身份证号
+ (BOOL)checkUserIdCard: (NSString *) idCard;
#pragma 正则匹配URL
+ (BOOL)checkURL : (NSString *) url;
//获取当前最上层的控制器
+ (UIViewController *)getTopController;
//json转字典
+(NSDictionary *) JSONStringToDictionaryWithData:(NSString *)data;
@end

NS_ASSUME_NONNULL_END
